package registnet.records;

import java.util.List;
import java.util.Vector;

public class Gradesheet {

	private Section section;
	private int semester;
	private int year;
	private List<Grade> grades = new Vector<Grade>();
	
	
	/**
	 * Default constructor
	 * 
	 * @param section - The section who owns the gradesheet
	 */
	public Gradesheet(Section section, int semester, int year){
		this.section = section;
	}
	
	
	/**
	 * Gets the section who owns the gradesheet
	 * 
	 * @return	The section who owns the gradesheet
	 */
	public Section getSection(){
		return this.section;
	}
	
	
	/**
	 * Sets the section who owns the gradesheet
	 * 
	 * @param section - The section who owns the gradesheet
	 */
	public void setSection(Section section){
		this.section = section;
	}
	
	
	/**
	 * Gets the semester when the gradesheet is used
	 * 
	 * @return	The semester when the gradesheet is used
	 */
	public int getSemester(){
		return this.semester;
	}
	
	
	/**
	 * Sets the semester when the gradesheet is used
	 * 
	 * @param semester - The semester when the gradesheet is used
	 */
	public void setSemester(int semester){
		this.semester = semester;
	}
	
	
	/**
	 * Gets the year when the gradesheet is used
	 * 
	 * @return	The year when the gradesheet is used
	 */
	public int getYear(){
		return this.year;
	}
	
	
	/**
	 * Sets the year when the gradesheet is used
	 * 
	 * @param year - The year when the gradesheet is used
	 */
	public void setYear(int year){
		this.year = year;
	}
	
	
	/**
	 * Gets the grades included in the gradesheet
	 * 
	 * @return	The grades included in the gradesheet
	 */
	public List<Grade> getGrades(){
		return this.grades;
	}
	
	
	/**
	 * Adds the grade into t gradesheet
	 * 
	 * @param grade - The grade to add
	 */
	public void addGrade(Grade grade){
		this.grades.add(grade);
	}
	
}
